//
//  UserInfoManager.h
//  yuanshangyiliao
//
//  Created by icholab on 2021/3/9.
//

#import <Foundation/Foundation.h>
#import "YGUserDefines.h"
#import "YGUserInfoModel.h"
NS_ASSUME_NONNULL_BEGIN

@interface UserInfoManager : NSObject

+ (instancetype)shareInstance;

- (YGUserInfoType)getUserType;

- (BOOL)isLogin;

- (void)configureUserInfo:(YGUserInfoModel *)model;

- (void)autoLoginWithUserInfo:(YGUserInfoModel *)model;
- (YGUserInfoModel *)getUserInfo;//当前登录用户信息

- (NSArray *)getCacheInfo;//缓存用户信息
@end

NS_ASSUME_NONNULL_END
